<!-- <template>
  <div class="app-container">
      <meta2d/>
  </div>
</template>

<script setup name='Technology'>
import { ref } from 'vue';
import meta2d from '@/components/meta2d/index';

</script>
<style scoped>
.app-container{
  padding: 0 !important;
  position: relative;
  overflow: hidden !important;
}

</style> -->

<template>
  <iframe class="iframe" :src="iframeSrc" frameborder="0"></iframe>
</template>

<script setup>

import { ref, watch, onMounted } from 'vue'
import { getToken, setToken } from '@/utils/auth';
import { getDeviceParameter } from '@/api/index';
const iframeSrc = ref('')

getDeviceParameter().then(({data}) => { 
  iframeSrc.value = data + `?route=/optimization&adminToken=${getToken()}`
})

</script>
<style>
.iframe{
  width:100%;
  height: 100%;
}
</style>